/* These are here in order to be recognized, but are not sent to
gtk as they are handled internally by gdk: */
- {"Gdk/WindowScalingFactor", "gdk-window-scaling-factor"}
+ {"Gdk/WindowScalingFactor", "gdk-window-scaling-factor"},
+ {"Gdk/UnscaledDPI", "gdk-unscaled-dpi"}
};
static const char *
GHashTable *old_list = x11_screen->xsettings;
GValue value = G_VALUE_INIT;
+ GValue *setting, *copy;
x11_screen->xsettings = NULL;
}
}
+ /* Since we support scaling we look at the specific Gdk/UnscaledDPI
+ setting if it exists and use that instead of Xft/DPI if it is set */
+ setting = g_hash_table_lookup (x11_screen->xsettings, "gdk-unscaled-dpi");
+ if (setting)
+ {
+ copy = g_new0 (GValue, 1);
+ g_value_init (copy, G_VALUE_TYPE (setting));
+ g_value_copy (setting, copy);
+ g_hash_table_insert (x11_screen->xsettings,
+ "gtk-xft-dpi", copy);
+ }
+
if (do_notify)
notify_changes (x11_screen, old_list);
if (old_list)